package com.woniu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.pojo.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.vo.BookQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dong
 * @since 2022-10-13
 */
public interface BookMapper extends BaseMapper<Book> {

    IPage<Map<String, Object>> selectByVoPage(IPage<Book> iPage, @Param("vo") BookQueryVo bookQueryVo);

    boolean modifyById(@Param("bookId") String bookId, @Param("status") String status);
}
